<?php

class DatasourceExtender {

	var $oDatasource;
	
	function DatasourceExtender( $oDatasource ) {
		$this->oDatasource   = $oDatasource;
	}

	function Disconnect() {
		return $this->oDatasource->Disconnect();	
	}

	function IsConnected() {
		return $this->oDatasource->IsConnected();	
	}

	function Errored() {
		return $this->oDatasource->Errored();
	}

	function GetLastError() {
		return $this->oDatasource->GetLastError();
	}

	function GetTableList() {
		return $this->oDatasource->GetTableList();
	}

	function GetColumnList( $sTableName ) {
		return $this->oDatasource->GetColumnList( $sTableName );
	}
	
	function GetForeignKeys( $sTableName ) {
		return $this->oDatasource->GetForeignKeys( $sTableName );
	}
	
	function GetPrimaryKey( $sTableName ) {
		return $this->oDatasource->GetPrimaryKey( $sTableName );
	}
	
	function GetLastDdl() {
		return $this->oDatasource->GetLastDdl();
	}
	
	function GetDatasourceId() {
		return $this->oDatasource->GetDatasourceId();	
	}
}

?>
